home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
90%
| dexvert
| Hypertext Markup Language File (text/html)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| HTML document text
| default (weak)
| |
99%
| file
| LaTeX document text
| default
| |
98%
| file
| exported SGML document text
| default
| |
97%
| file
| exported SGML document, ASCII text
| default
| |
80%
| TrID
| HyperText Markup Language with DOCTYPE
| default
| |
19%
| TrID
| HyperText Markup Language
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/html
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 6d 61 | 6e 70 61 67 65 2d 65 78 |ts of ma|npage-ex|
|000000b0| 61 6d 70 6c 65 32 5f 63 | 74 3c 2f 54 49 54 4c 45 |ample2_c|t</TITLE|
|000000c0| 3e 0a 0a 3c 4d 45 54 41 | 20 48 54 54 50 2d 45 51 |>..<META| HTTP-EQ|
|000000d0| 55 49 56 3d 22 43 6f 6e | 74 65 6e 74 2d 54 79 70 |UIV="Con|tent-Typ|
|000000e0| 65 22 20 43 4f 4e 54 45 | 4e 54 3d 22 74 65 78 74 |e" CONTE|NT="text|
|000000f0| 2f 68 74 6d 6c 3b 20 63 | 68 61 72 73 65 74 3d 75 |/html; c|harset=u|
|00000100| 74 66 2d 38 22 3e 0a 3c | 4d 45 54 41 20 4e 41 4d |tf-8">.<|META NAM|
|00000110| 45 3d 22 76 69 65 77 70 | 6f 72 74 22 20 43 4f 4e |E="viewp|ort" CON|
|00000120| 54 45 4e 54 3d 22 77 69 | 64 74 68 3d 64 65 76 69 |TENT="wi|dth=devi|
|00000130| 63 65 2d 77 69 64 74 68 | 2c 20 69 6e 69 74 69 61 |ce-width|, initia|
|00000140| 6c 2d 73 63 61 6c 65 3d | 31 2e 30 22 3e 0a 3c 4d |l-scale=|1.0">.<M|
|00000150| 45 54 41 20 4e 41 4d 45 | 3d 22 47 65 6e 65 72 61 |ETA NAME|="Genera|
|00000160| 74 6f 72 22 20 43 4f 4e | 54 45 4e 54 3d 22 4c 61 |tor" CON|TENT="La|
|00000170| 54 65 58 32 48 54 4d 4c | 20 76 32 30 32 32 22 3e |TeX2HTML| v2022">|
|00000180| 0a 0a 3c 4c 49 4e 4b 20 | 52 45 4c 3d 22 53 54 59 |..<LINK |REL="STY|
|00000190| 4c 45 53 48 45 45 54 22 | 20 48 52 45 46 3d 22 6d |LESHEET"| HREF="m|
|000001a0| 61 6e 70 61 67 65 2d 65 | 78 61 6d 70 6c 65 32 5f |anpage-e|xample2_|
|000001b0| 63 74 2e 63 73 73 22 3e | 0a 0a 3c 2f 48 45 41 44 |ct.css">|..</HEAD|
|000001c0| 3e 0a 20 0a 3c 42 4f 44 | 59 20 62 67 63 6f 6c 6f |>. .<BOD|Y bgcolo|
|000001d0| 72 3d 22 23 66 66 66 66 | 66 66 22 20 74 65 78 74 |r="#ffff|ff" text|
|000001e0| 3d 22 23 30 30 30 30 30 | 30 22 20 6c 69 6e 6b 3d |="#00000|0" link=|
|000001f0| 22 23 39 39 34 34 45 45 | 22 20 76 6c 69 6e 6b 3d |"#9944EE|" vlink=|
|00000200| 22 23 30 30 30 30 66 66 | 22 20 61 6c 69 6e 6b 3d |"#0000ff|" alink=|
|00000210| 22 23 30 30 66 66 30 30 | 22 3e 0a 0a 26 6c 74 3b |"#00ff00|">..<|
|00000220| 21 44 4f 43 54 59 50 45 | 20 48 54 4d 4c 20 50 55 |!DOCTYPE| HTML PU|
|00000230| 42 4c 49 43 20 22 2d 2f | 2f 57 33 43 2f 2f 44 54 |BLIC "-/|/W3C//DT|
|00000240| 44 20 48 54 4d 4c 20 33 | 2e 32 20 46 69 6e 61 6c |D HTML 3|.2 Final|
|00000250| 2f 2f 65 6e 22 26 67 74 | 3b 0a 0a 3c 50 3e 0a 26 |//en">|;..<P>.&|
|00000260| 6c 74 3b 21 26 6e 64 61 | 73 68 3b 43 6f 6e 76 65 |lt;!&nda|sh;Conve|
|00000270| 72 74 65 64 20 77 69 74 | 68 20 4c 61 54 65 58 32 |rted wit|h LaTeX2|
|00000280| 48 54 4d 4c 20 32 30 32 | 32 20 28 52 65 6c 65 61 |HTML 202|2 (Relea|
|00000290| 73 65 64 20 4a 61 6e 75 | 61 72 79 20 31 2c 20 32 |sed Janu|ary 1, 2|
|000002a0| 30 32 32 29 20 26 6e 64 | 61 73 68 3b 26 67 74 3b |022) &nd|ash;>|
|000002b0| 0a 26 6c 74 3b 48 54 4d | 4c 20 6c 61 6e 67 3d 22 |.<HTM|L lang="|
|000002c0| 65 6e 22 26 67 74 3b 0a | 26 6c 74 3b 48 45 41 44 |en">.|<HEAD|
|000002d0| 26 67 74 3b 0a 26 6c 74 | 3b 54 49 54 4c 45 26 67 |>.<|;TITLE&g|
|000002e0| 74 3b 43 6f 6e 74 65 6e | 74 73 20 6f 66 20 6d 61 |t;Conten|ts of ma|
|000002f0| 6e 70 61 67 65 2d 65 78 | 61 6d 70 6c 65 32 26 6c |npage-ex|ample2&l|
|00000300| 74 3b 2f 54 49 54 4c 45 | 26 67 74 3b 0a 0a 3c 50 |t;/TITLE|>..<P|
|00000310| 3e 0a 26 6c 74 3b 4d 45 | 54 41 20 48 54 54 50 2d |>.<ME|TA HTTP-|
|00000320| 45 51 55 49 56 3d 22 43 | 6f 6e 74 65 6e 74 2d 54 |EQUIV="C|ontent-T|
|00000330| 79 70 65 22 20 43 4f 4e | 54 45 4e 54 3d 22 74 65 |ype" CON|TENT="te|
|00000340| 78 74 2f 68 74 6d 6c 3b | 20 63 68 61 72 73 65 74 |xt/html;| charset|
|00000350| 3d 75 74 66 2d 38 22 26 | 67 74 3b 0a 26 6c 74 3b |=utf-8"&|gt;.<|
|00000360| 4d 45 54 41 20 4e 41 4d | 45 3d 22 76 69 65 77 70 |META NAM|E="viewp|
|00000370| 6f 72 74 22 20 43 4f 4e | 54 45 4e 54 3d 22 77 69 |ort" CON|TENT="wi|
|00000380| 64 74 68 3d 64 65 76 69 | 63 65 2d 77 69 64 74 68 |dth=devi|ce-width|
|00000390| 2c 20 69 6e 69 74 69 61 | 6c 2d 73 63 61 6c 65 3d |, initia|l-scale=|
|000003a0| 31 2e 30 22 26 67 74 3b | 0a 26 6c 74 3b 4d 45 54 |1.0">|.<MET|
|000003b0| 41 20 4e 41 4d 45 3d 22 | 47 65 6e 65 72 61 74 6f |A NAME="|Generato|
|000003c0| 72 22 20 43 4f 4e 54 45 | 4e 54 3d 22 4c 61 54 65 |r" CONTE|NT="LaTe|
|000003d0| 58 32 48 54 4d 4c 20 76 | 32 30 32 32 22 26 67 74 |X2HTML v|2022">|
|000003e0| 3b 0a 0a 3c 50 3e 0a 26 | 6c 74 3b 4c 49 4e 4b 20 |;..<P>.&|lt;LINK |
|000003f0| 52 45 4c 3d 22 53 54 59 | 4c 45 53 48 45 45 54 22 |REL="STY|LESHEET"|
|00000400| 20 48 52 45 46 3d 22 6d | 61 6e 70 61 67 65 2d 65 | HREF="m|anpage-e|
|00000410| 78 61 6d 70 6c 65 32 2e | 63 73 73 22 26 67 74 3b |xample2.|css">|
|00000420| 0a 0a 3c 50 3e 0a 26 6c | 74 3b 2f 48 45 41 44 26 |..<P>.&l|t;/HEAD&|
|00000430| 67 74 3b 0a 0a 3c 50 3e | 0a 26 6c 74 3b 42 4f 44 |gt;..<P>|.<BOD|
|00000440| 59 20 62 67 63 6f 6c 6f | 72 3d 22 23 66 66 66 66 |Y bgcolo|r="#ffff|
|00000450| 66 66 22 20 74 65 78 74 | 3d 22 23 30 30 30 30 30 |ff" text|="#00000|
|00000460| 30 22 20 6c 69 6e 6b 3d | 22 23 39 39 34 34 45 45 |0" link=|"#9944EE|
|00000470| 22 20 76 6c 69 6e 6b 3d | 22 23 30 30 30 30 66 66 |" vlink=|"#0000ff|
|00000480| 22 20 61 6c 69 6e 6b 3d | 22 23 30 30 66 66 30 30 |" alink=|"#00ff00|
|00000490| 22 26 67 74 3b 0a 0a 3c | 50 3e 0a 26 6c 74 3b 50 |">..<|P>.<P|
|000004a0| 26 67 74 3b 0a 26 6c 74 | 3b 42 52 26 67 74 3b 0a |>.<|;BR>.|
|000004b0| 26 6c 74 3b 49 4d 47 0a | 20 20 53 54 59 4c 45 3d |<IMG.| STYLE=|
|000004c0| 22 22 20 53 52 43 3d 22 | 69 6d 67 31 2e 70 6e 67 |"" SRC="|img1.png|
|000004d0| 22 0a 20 41 4c 54 3d 22 | 0a 3c 42 52 3e 0a 3c 49 |". ALT="|.<BR>.<I|
|000004e0| 4d 47 0a 20 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |MG. STY|LE="heig|
|000004f0| 68 74 3a 20 31 39 36 2e | 32 35 65 78 3b 20 76 65 |ht: 196.|25ex; ve|
|00000500| 72 74 69 63 61 6c 2d 61 | 6c 69 67 6e 3a 20 2d 30 |rtical-a|lign: -0|
|00000510| 2e 35 37 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.57ex; "| SRC="im|
|00000520| 67 31 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 5c 62 |g1.png".| ALT="\b|
|00000530| 65 67 69 6e 7b 6d 61 6e | 70 61 67 65 7d 7b 4f 49 |egin{man|page}{OI|
|00000540| 4d 20 43 2b 2b 20 4c 69 | 62 72 61 72 79 7d 7b 43 |M C++ Li|brary}{C|
|00000550| 68 6f 69 63 65 7d 7b 56 | 65 72 73 69 6f 6e 20 31 |hoice}{V|ersion 1|
|00000560| 2e 30 7d 0a 5c 70 61 72 | 0a 5c 73 75 62 74 69 74 |.0}.\par|.\subtit|
|00000570| 6c 65 7b 4e 61 6d 65 7d | 0a 43 68 6f 69 2e 2e 2e |le{Name}|.Choi...|
|00000580| 2e 0a 2e 2e 2e 20 43 68 | 65 6e 20 61 74 20 74 68 |..... Ch|en at th|
|00000590| 65 20 4f 66 66 69 63 65 | 20 66 6f 72 20 49 6e 66 |e Office| for Inf|
|000005a0| 6f 72 6d 61 74 69 6f 6e | 20 4d 61 6e 61 67 65 6d |ormation| Managem|
|000005b0| 65 6e 74 2c 20 55 49 55 | 43 2e 20 39 2d 31 2d 38 |ent, UIU|C. 9-1-8|
|000005c0| 39 2e 0a 5c 70 61 72 0a | 5c 65 6e 64 7b 6d 61 6e |9..\par.|\end{man|
|000005d0| 70 61 67 65 7d 22 3e 0a | 3c 42 52 3e 22 26 67 74 |page}">.|<BR>">|
|000005e0| 3b 0a 26 6c 74 3b 42 52 | 26 67 74 3b 0a 0a 3c 50 |;.<BR|>..<P|
|000005f0| 3e 0a 26 6c 74 3b 50 52 | 45 26 67 74 3b 0a 20 20 |>.<PR|E>. |
|00000600| 20 20 2f 2a 20 45 58 41 | 4d 50 4c 45 20 31 20 2a | /* EXA|MPLE 1 *|
|00000610| 2f 0a 20 20 20 20 23 69 | 6e 63 6c 75 64 65 20 26 |/. #i|nclude &|
|00000620| 61 6d 70 3b 6c 74 3b 73 | 74 64 6c 69 62 2e 68 26 |amp;lt;s|tdlib.h&|
|00000630| 61 6d 70 3b 67 74 3b 0a | 20 20 20 20 23 69 6e 63 |amp;gt;.| #inc|
|00000640| 6c 75 64 65 20 22 63 68 | 6f 69 63 65 2e 68 22 0a |lude "ch|oice.h".|
|00000650| 0a 3c 50 3e 0a 76 6f 69 | 64 20 68 61 6e 64 6c 65 |.<P>.voi|d handle|
|00000660| 72 31 28 69 6e 74 20 63 | 68 6f 69 63 65 29 20 0a |r1(int c|hoice) .|
|00000670| 20 20 20 20 20 20 20 20 | 42 6f 78 20 62 6f 78 28 | |Box box(|
|00000680| 35 30 30 2c 20 33 30 2c | 20 36 30 30 2c 20 36 30 |500, 30,| 600, 60|
|00000690| 2c 20 4c 49 47 48 54 5f | 43 59 41 4e 2c 20 4c 49 |, LIGHT_|CYAN, LI|
|000006a0| 47 48 54 5f 4d 41 47 45 | 4e 54 41 29 3b 0a 20 20 |GHT_MAGE|NTA);. |
|000006b0| 20 20 20 20 20 20 62 6f | 78 20 26 61 6d 70 3b 6c | bo|x &l|
|000006c0| 74 3b 26 61 6d 70 3b 6c | 74 3b 20 63 68 6f 69 63 |t;&l|t; choic|
|000006d0| 65 20 2b 20 31 3b 0a 20 | 20 20 20 0a 0a 3c 50 3e |e + 1;. | ..<P>|
|000006e0| 0a 76 6f 69 64 20 68 61 | 6e 64 6c 65 72 32 28 69 |.void ha|ndler2(i|
|000006f0| 6e 74 20 63 68 6f 69 63 | 65 29 20 0a 20 20 20 20 |nt choic|e) . |
|00000700| 20 20 20 20 42 6f 78 20 | 62 6f 78 28 35 30 30 2c | Box |box(500,|
|00000710| 20 33 30 2c 20 36 30 30 | 2c 20 36 30 2c 20 4c 49 | 30, 600|, 60, LI|
|00000720| 47 48 54 5f 43 59 41 4e | 2c 20 4c 49 47 48 54 5f |GHT_CYAN|, LIGHT_|
|00000730| 4d 41 47 45 4e 54 41 29 | 3b 0a 20 20 20 20 20 20 |MAGENTA)|;. |
|00000740| 20 20 62 6f 78 20 26 61 | 6d 70 3b 6c 74 3b 26 61 | box &a|mp;lt;&a|
|00000750| 6d 70 3b 6c 74 3b 20 28 | 63 68 6f 69 63 65 3d 3d |mp;lt; (|choice==|
|00000760| 30 20 3f 20 22 41 70 65 | 22 20 3a 20 28 63 68 6f |0 ? "Ape|" : (cho|
|00000770| 69 63 65 3d 3d 31 20 3f | 20 22 42 6f 62 22 20 3a |ice==1 ?| "Bob" :|
|00000780| 20 22 43 61 72 22 29 29 | 3b 0a 20 20 20 20 0a 0a | "Car"))|;. ..|
|00000790| 3c 50 3e 0a 76 6f 69 64 | 20 68 61 6e 64 6c 65 72 |<P>.void| handler|
|000007a0| 33 28 69 6e 74 20 63 68 | 6f 69 63 65 29 20 0a 20 |3(int ch|oice) . |
|000007b0| 20 20 20 20 20 20 20 42 | 6f 78 20 62 6f 78 28 35 | B|ox box(5|
|000007c0| 30 30 2c 20 33 30 2c 20 | 36 30 30 2c 20 36 30 2c |00, 30, |600, 60,|
|000007d0| 20 4c 49 47 48 54 5f 43 | 59 41 4e 2c 20 4c 49 47 | LIGHT_C|YAN, LIG|
|000007e0| 48 54 5f 4d 41 47 45 4e | 54 41 29 3b 0a 20 20 20 |HT_MAGEN|TA);. |
|000007f0| 20 20 20 20 20 73 77 69 | 74 63 68 20 28 63 68 6f | swi|tch (cho|
|00000800| 69 63 65 29 20 0a 20 20 | 20 20 20 20 20 20 20 20 |ice) . | |
|00000810| 20 20 63 61 73 65 20 30 | 3a 20 62 6f 78 20 26 61 | case 0|: box &a|
|00000820| 6d 70 3b 6c 74 3b 26 61 | 6d 70 3b 6c 74 3b 20 22 |mp;lt;&a|mp;lt; "|
|00000830| 44 22 3b 20 62 72 65 61 | 6b 3b 20 63 61 73 65 20 |D"; brea|k; case |
|00000840| 31 3a 20 62 6f 78 20 26 | 61 6d 70 3b 6c 74 3b 26 |1: box &|amp;lt;&|
|00000850| 61 6d 70 3b 6c 74 3b 20 | 22 45 22 3b 20 62 72 65 |amp;lt; |"E"; bre|
|00000860| 61 6b 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ak;. | |
|00000870| 63 61 73 65 20 32 3a 20 | 62 6f 78 20 26 61 6d 70 |case 2: |box &|
|00000880| 3b 6c 74 3b 26 61 6d 70 | 3b 6c 74 3b 20 22 46 22 |;lt;&|;lt; "F"|
|00000890| 3b 20 62 72 65 61 6b 3b | 20 63 61 73 65 20 33 3a |; break;| case 3:|
|000008a0| 20 62 6f 78 20 26 61 6d | 70 3b 6c 74 3b 26 61 6d | box &am|p;lt;&am|
|000008b0| 70 3b 6c 74 3b 20 22 47 | 22 3b 20 62 72 65 61 6b |p;lt; "G|"; break|
|000008c0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 |;. | ca|
|000008d0| 73 65 20 34 3a 20 65 78 | 69 74 28 30 29 3b 0a 20 |se 4: ex|it(0);. |
|000008e0| 20 20 20 20 20 20 20 0a | 20 20 20 20 0a 0a 3c 50 | .| ..<P|
|000008f0| 3e 0a 6d 61 69 6e 28 29 | 20 0a 20 20 20 20 20 20 |>.main()| . |
|00000900| 20 20 50 6f 69 6e 74 20 | 61 28 31 30 30 2c 20 31 | Point |a(100, 1|
|00000910| 30 30 29 2c 20 62 28 32 | 32 30 2c 20 31 33 30 29 |00), b(2|20, 130)|
|00000920| 3b 0a 20 20 20 20 20 20 | 20 20 43 68 6f 69 63 65 |;. | Choice|
|00000930| 20 63 31 28 61 2c 62 2c | 42 52 4f 57 4e 2c 52 45 | c1(a,b,|BROWN,RE|
|00000940| 44 2c 4f 4e 5f 42 4f 52 | 44 45 52 2c 30 2c 34 2c |D,ON_BOR|DER,0,4,|
|00000950| 22 40 31 40 22 2c 22 40 | 32 40 22 2c 22 40 33 40 |"@1@","@|2@","@3@|
|00000960| 22 2c 22 40 34 40 22 29 | 3b 0a 0a 3c 50 3e 0a 61 |","@4@")|;..<P>.a|
|00000970| 20 3d 20 50 6f 69 6e 74 | 28 32 30 30 2c 20 32 30 | = Point|(200, 20|
|00000980| 30 29 3b 20 62 20 3d 20 | 50 6f 69 6e 74 28 34 30 |0); b = |Point(40|
|00000990| 30 2c 20 32 33 30 29 3b | 0a 20 20 20 20 20 20 20 |0, 230);|. |
|000009a0| 20 43 68 6f 69 63 65 20 | 63 32 28 61 2c 62 2c 57 | Choice |c2(a,b,W|
|000009b0| 48 49 54 45 2c 42 4c 55 | 45 2c 49 4e 5f 42 4f 52 |HITE,BLU|E,IN_BOR|
|000009c0| 44 45 52 2c 31 30 2c 33 | 2c 22 40 41 40 70 65 22 |DER,10,3|,"@A@pe"|
|000009d0| 2c 22 40 42 40 6f 62 22 | 2c 22 40 43 40 61 72 22 |,"@B@ob"|,"@C@ar"|
|000009e0| 29 3b 0a 0a 3c 50 3e 0a | 61 20 3d 20 50 6f 69 6e |);..<P>.|a = Poin|
|000009f0| 74 28 35 30 30 2c 20 32 | 33 30 29 3b 20 62 20 3d |t(500, 2|30); b =|
|00000a00| 20 50 6f 69 6e 74 28 35 | 35 30 2c 20 33 33 30 29 | Point(5|50, 330)|
|00000a10| 3b 0a 20 20 20 20 20 20 | 20 20 43 68 6f 69 63 65 |;. | Choice|
|00000a20| 20 63 33 28 61 2c 62 2c | 47 52 45 45 4e 2c 47 52 | c3(a,b,|GREEN,GR|
|00000a30| 41 59 2c 4e 4f 5f 42 4f | 52 44 45 52 2c 31 30 2c |AY,NO_BO|RDER,10,|
|00000a40| 35 2c 22 40 44 40 22 2c | 22 40 45 40 22 2c 22 40 |5,"@D@",|"@E@","@|
|00000a50| 46 40 22 2c 22 40 47 40 | 22 2c 22 40 48 40 22 29 |F@","@G@|","@H@")|
|00000a60| 3b 0a 0a 3c 50 3e 0a 66 | 6f 72 20 28 69 6e 74 20 |;..<P>.f|or (int |
|00000a70| 70 69 63 6b 3b 3b 29 20 | 0a 20 20 20 20 20 20 20 |pick;;) |. |
|00000a80| 20 20 20 20 20 69 66 20 | 28 28 70 69 63 6b 20 3d | if |((pick =|
|00000a90| 20 63 31 2e 73 65 6c 65 | 63 74 28 29 29 20 21 3d | c1.sele|ct()) !=|
|00000aa0| 20 2d 31 29 20 68 61 6e | 64 6c 65 72 31 28 70 69 | -1) han|dler1(pi|
|00000ab0| 63 6b 29 3b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ck);. | |
|00000ac0| 20 69 66 20 28 28 70 69 | 63 6b 20 3d 20 63 32 2e | if ((pi|ck = c2.|
|00000ad0| 73 65 6c 65 63 74 28 29 | 29 20 21 3d 20 2d 31 29 |select()|) != -1)|
|00000ae0| 20 68 61 6e 64 6c 65 72 | 32 28 70 69 63 6b 29 3b | handler|2(pick);|
|00000af0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 |. | if |
|00000b00| 28 28 70 69 63 6b 20 3d | 20 63 33 2e 73 65 6c 65 |((pick =| c3.sele|
|00000b10| 63 74 28 29 29 20 21 3d | 20 2d 31 29 20 68 61 6e |ct()) !=| -1) han|
|00000b20| 64 6c 65 72 33 28 70 69 | 63 6b 29 3b 0a 20 20 20 |dler3(pi|ck);. |
|00000b30| 20 20 20 20 20 0a 20 20 | 20 20 0a 26 6c 74 3b 2f | . | .</|
|00000b40| 50 52 45 26 67 74 3b 0a | 0a 3c 50 3e 0a 26 6c 74 |PRE>.|.<P>.<|
|00000b50| 3b 50 52 45 26 67 74 3b | 0a 20 20 20 20 2f 2a 20 |;PRE>|. /* |
|00000b60| 45 58 41 4d 50 4c 45 20 | 32 20 2a 2f 0a 20 20 20 |EXAMPLE |2 */. |
|00000b70| 20 23 69 6e 63 6c 75 64 | 65 20 26 61 6d 70 3b 6c | #includ|e &l|
|00000b80| 74 3b 73 74 64 6c 69 62 | 2e 68 26 61 6d 70 3b 67 |t;stdlib|.h&g|
|00000b90| 74 3b 0a 20 20 20 20 23 | 69 6e 63 6c 75 64 65 20 |t;. #|include |
|00000ba0| 22 63 68 6f 69 63 65 2e | 68 22 0a 0a 3c 50 3e 0a |"choice.|h"..<P>.|
|00000bb0| 76 6f 69 64 20 68 61 6e | 64 6c 65 72 31 28 69 6e |void han|dler1(in|
|00000bc0| 74 20 70 69 63 6b 29 20 | 0a 20 20 20 20 20 20 20 |t pick) |. |
|00000bd0| 20 42 6f 78 20 62 6f 78 | 28 35 30 30 2c 20 33 30 | Box box|(500, 30|
|00000be0| 2c 20 36 30 30 2c 20 36 | 30 2c 20 4c 49 47 48 54 |, 600, 6|0, LIGHT|
|00000bf0| 5f 43 59 41 4e 2c 20 4c | 49 47 48 54 5f 4d 41 47 |_CYAN, L|IGHT_MAG|
|00000c00| 45 4e 54 41 29 3b 0a 20 | 20 20 20 20 20 20 20 62 |ENTA);. | b|
|00000c10| 6f 78 20 26 61 6d 70 3b | 6c 74 3b 26 61 6d 70 3b |ox &|lt;&|
|00000c20| 6c 74 3b 20 70 69 63 6b | 20 2b 20 31 3b 0a 20 20 |lt; pick| + 1;. |
|00000c30| 20 20 0a 0a 3c 50 3e 0a | 76 6f 69 64 20 68 61 6e | ..<P>.|void han|
|00000c40| 64 6c 65 72 32 28 69 6e | 74 20 70 69 63 6b 29 20 |dler2(in|t pick) |
|00000c50| 0a 20 20 20 20 20 20 20 | 20 42 6f 78 20 62 6f 78 |. | Box box|
|00000c60| 28 35 30 30 2c 20 33 30 | 2c 20 36 30 30 2c 20 36 |(500, 30|, 600, 6|
|00000c70| 30 2c 20 4c 49 47 48 54 | 5f 43 59 41 4e 2c 20 4c |0, LIGHT|_CYAN, L|
|00000c80| 49 47 48 54 5f 4d 41 47 | 45 4e 54 41 29 3b 0a 20 |IGHT_MAG|ENTA);. |
|00000c90| 20 20 20 20 20 20 20 62 | 6f 78 20 26 61 6d 70 3b | b|ox &|
|00000ca0| 6c 74 3b 26 61 6d 70 3b | 6c 74 3b 20 28 70 69 63 |lt;&|lt; (pic|
|00000cb0| 6b 3d 3d 30 20 3f 20 22 | 41 70 65 22 20 3a 20 28 |k==0 ? "|Ape" : (|
|00000cc0| 70 69 63 6b 3d 3d 31 20 | 3f 20 22 42 6f 62 22 20 |pick==1 |? "Bob" |
|00000cd0| 3a 20 22 43 61 72 22 29 | 29 3b 0a 20 20 20 20 0a |: "Car")|);. .|
|00000ce0| 0a 3c 50 3e 0a 76 6f 69 | 64 20 68 61 6e 64 6c 65 |.<P>.voi|d handle|
|00000cf0| 72 33 28 69 6e 74 20 70 | 69 63 6b 29 20 0a 20 20 |r3(int p|ick) . |
|00000d00| 20 20 20 20 20 20 42 6f | 78 20 62 6f 78 28 35 30 | Bo|x box(50|
|00000d10| 30 2c 20 33 30 2c 20 36 | 30 30 2c 20 36 30 2c 20 |0, 30, 6|00, 60, |
|00000d20| 4c 49 47 48 54 5f 43 59 | 41 4e 2c 20 4c 49 47 48 |LIGHT_CY|AN, LIGH|
|00000d30| 54 5f 4d 41 47 45 4e 54 | 41 29 3b 0a 20 20 20 20 |T_MAGENT|A);. |
|00000d40| 20 20 20 20 73 77 69 74 | 63 68 20 28 70 69 63 6b | swit|ch (pick|
|00000d50| 29 20 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |) . | c|
|00000d60| 61 73 65 20 30 3a 20 62 | 6f 78 20 26 61 6d 70 3b |ase 0: b|ox &|
|00000d70| 6c 74 3b 26 61 6d 70 3b | 6c 74 3b 20 22 44 22 3b |lt;&|lt; "D";|
|00000d80| 20 62 72 65 61 6b 3b 20 | 63 61 73 65 20 31 3a 20 | break; |case 1: |
|00000d90| 62 6f 78 20 26 61 6d 70 | 3b 6c 74 3b 26 61 6d 70 |box &|;lt;&|
|00000da0| 3b 6c 74 3b 20 22 45 22 | 3b 20 62 72 65 61 6b 3b |;lt; "E"|; break;|
|00000db0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 63 61 73 |. | cas|
|00000dc0| 65 20 32 3a 20 62 6f 78 | 20 26 61 6d 70 3b 6c 74 |e 2: box| &lt|
|00000dd0| 3b 26 61 6d 70 3b 6c 74 | 3b 20 22 46 22 3b 20 62 |;&lt|; "F"; b|
|00000de0| 72 65 61 6b 3b 20 63 61 | 73 65 20 33 3a 20 62 6f |reak; ca|se 3: bo|
|00000df0| 78 20 26 61 6d 70 3b 6c | 74 3b 26 61 6d 70 3b 6c |x &l|t;&l|
|00000e00| 74 3b 20 22 47 22 3b 20 | 62 72 65 61 6b 3b 0a 20 |t; "G"; |break;. |
|00000e10| 20 20 20 20 20 20 20 20 | 20 20 20 63 61 73 65 20 | | case |
|00000e20| 34 3a 20 65 78 69 74 28 | 30 29 3b 0a 20 20 20 20 |4: exit(|0);. |
|00000e30| 20 20 20 20 0a 20 20 20 | 20 0a 0a 3c 50 3e 0a 6d | . | ..<P>.m|
|00000e40| 61 69 6e 28 29 20 0a 20 | 20 20 20 20 20 20 20 50 |ain() . | P|
|00000e50| 6f 69 6e 74 20 61 28 31 | 30 30 2c 20 31 30 30 29 |oint a(1|00, 100)|
|00000e60| 2c 20 62 28 32 32 30 2c | 20 31 33 30 29 3b 0a 20 |, b(220,| 130);. |
|00000e70| 20 20 20 20 20 20 20 43 | 68 6f 69 63 65 20 63 31 | C|hoice c1|
|00000e80| 28 61 2c 62 2c 42 52 4f | 57 4e 2c 52 45 44 2c 4f |(a,b,BRO|WN,RED,O|
|00000e90| 4e 5f 42 4f 52 44 45 52 | 2c 30 2c 34 2c 22 40 31 |N_BORDER|,0,4,"@1|
|00000ea0| 40 22 2c 22 40 32 40 22 | 2c 22 40 33 40 22 2c 22 |@","@2@"|,"@3@","|
|00000eb0| 40 34 40 22 29 3b 0a 20 | 20 20 20 20 20 20 20 43 |@4@");. | C|
|00000ec0| 68 6f 69 63 65 20 63 32 | 28 33 2c 20 48 4f 52 49 |hoice c2|(3, HORI|
|00000ed0| 5a 4f 4e 54 41 4c 29 3b | 0a 20 20 20 20 20 20 20 |ZONTAL);|. |
|00000ee0| 20 63 32 2e 61 64 64 49 | 74 65 6d 28 50 6f 69 6e | c2.addI|tem(Poin|
|00000ef0| 74 28 32 30 30 2c 20 32 | 30 30 29 2c 20 50 6f 69 |t(200, 2|00), Poi|
|00000f00| 6e 74 28 32 36 30 2c 32 | 33 30 29 2c 0a 20 20 20 |nt(260,2|30),. |
|00000f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000f20| 57 48 49 54 45 2c 20 42 | 4c 55 45 2c 20 49 4e 5f |WHITE, B|LUE, IN_|
|00000f30| 42 4f 52 44 45 52 2c 20 | 22 40 41 40 70 65 22 29 |BORDER, |"@A@pe")|
|00000f40| 3b 0a 20 20 20 20 20 20 | 20 20 63 32 2e 61 64 64 |;. | c2.add|
|00000f50| 49 74 65 6d 28 50 6f 69 | 6e 74 28 32 37 30 2c 20 |Item(Poi|nt(270, |
|00000f60| 32 30 30 29 2c 20 50 6f | 69 6e 74 28 33 33 30 2c |200), Po|int(330,|
|00000f70| 32 33 30 29 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |230),. | |
|00000f80| 20 20 20 20 20 20 20 20 | 20 57 48 49 54 45 2c 20 | | WHITE, |
|00000f90| 42 4c 55 45 2c 20 49 4e | 5f 42 4f 52 44 45 52 2c |BLUE, IN|_BORDER,|
|00000fa0| 20 22 40 42 40 6f 62 22 | 29 3b 0a 20 20 20 20 20 | "@B@ob"|);. |
|00000fb0| 20 20 20 63 32 2e 61 64 | 64 49 74 65 6d 28 50 6f | c2.ad|dItem(Po|
|00000fc0| 69 6e 74 28 33 34 30 2c | 20 32 30 30 29 2c 20 50 |int(340,| 200), P|
|00000fd0| 6f 69 6e 74 28 34 30 30 | 2c 32 33 30 29 2c 0a 20 |oint(400|,230),. |
|00000fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ff0| 20 20 57 48 49 54 45 2c | 20 42 4c 55 45 2c 20 49 | WHITE,| BLUE, I|
|00001000| 4e 5f 42 4f 52 44 45 52 | 2c 20 22 40 43 40 61 72 |N_BORDER|, "@C@ar|
|00001010| 22 29 3b 0a 20 20 20 20 | 20 20 20 20 61 20 3d 20 |");. | a = |
|00001020| 50 6f 69 6e 74 28 35 30 | 30 2c 20 32 33 30 29 3b |Point(50|0, 230);|
|00001030| 20 62 20 3d 20 50 6f 69 | 6e 74 28 35 35 30 2c 20 | b = Poi|nt(550, |
|00001040| 33 33 30 29 3b 0a 20 20 | 20 20 20 20 20 20 43 68 |330);. | Ch|
|00001050| 6f 69 63 65 20 63 33 28 | 61 2c 62 2c 47 52 45 45 |oice c3(|a,b,GREE|
|00001060| 4e 2c 47 52 41 59 2c 4e | 4f 5f 42 4f 52 44 45 52 |N,GRAY,N|O_BORDER|
|00001070| 2c 31 30 2c 35 2c 22 40 | 44 40 22 2c 22 40 45 40 |,10,5,"@|D@","@E@|
|00001080| 22 2c 22 40 46 40 22 2c | 22 40 47 40 22 2c 22 40 |","@F@",|"@G@","@|
|00001090| 48 40 22 29 3b 0a 0a 3c | 50 3e 0a 63 31 2e 62 69 |H@");..<|P>.c1.bi|
|000010a0| 6e 64 28 68 61 6e 64 6c | 65 72 31 29 3b 0a 20 20 |nd(handl|er1);. |
|000010b0| 20 20 20 20 20 20 63 32 | 2e 62 69 6e 64 28 68 61 | c2|.bind(ha|
|000010c0| 6e 64 6c 65 72 32 29 3b | 0a 20 20 20 20 20 20 20 |ndler2);|. |
|000010d0| 20 63 33 2e 62 69 6e 64 | 28 68 61 6e 64 6c 65 72 | c3.bind|(handler|
|000010e0| 33 29 3b 0a 20 20 20 20 | 20 20 20 20 45 76 65 6e |3);. | Even|
|000010f0| 74 3a 3a 77 61 69 74 46 | 6f 72 45 76 65 6e 74 73 |t::waitF|orEvents|
|00001100| 28 29 3b 0a 20 20 20 20 | 0a 26 6c 74 3b 2f 50 52 |();. |.</PR|
|00001110| 45 26 67 74 3b 0a 26 6c | 74 3b 48 52 26 67 74 3b |E>.&l|t;HR>|
|00001120| 0a 0a 3c 50 3e 0a 26 6c | 74 3b 2f 42 4f 44 59 26 |..<P>.&l|t;/BODY&|
|00001130| 67 74 3b 0a 26 6c 74 3b | 2f 48 54 4d 4c 26 67 74 |gt;.<|/HTML>|
|00001140| 3b 0a 0a 3c 48 52 3e 0a | 0a 3c 2f 42 4f 44 59 3e |;..<HR>.|.</BODY>|
|00001150| 0a 3c 2f 48 54 4d 4c 3e | 0a |.</HTML>|. |
+--------+-------------------------+-------------------------+--------+--------+